 $html = '<a href="javascript:void(0)" onclick="pagination(1)">首页</a>';

        if ($nowPage == 0) {
            $html .= '<a href="javascript:void(0)">上一页</a>';
        } else {
            $html .= '<a href="javascript:void(0)" onclick="pagination(' . ($nowPage - 1) . ')">上一页</a>';
        }
        for ($i = 1; $i <= $totalPages; $i++) {
            $html.='<a href="javascript:void(0)" onclick="pagination(' . $i . ')">' . $i . '</a>';
        }
        $html .= '<a href="javascript:void(0)" onclick="pagination(' . ($nowPage + 1) . ')">下一页</a>';

        if ($nowPage >= $totalRows) {
            $html .= '<a href="javascript:void(0)">末页</a>';
        } else {
            $html .= '<a href="javascript:void(0)" onclick="pagination(' . ($totalPages + 1) . ')">末页</a>';
        }